home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinXP CD-Burning.xpl < prev    next >
Text File  |  2002-02-06  |  1KB  |  48 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Hardware\CD-ROM/DVD"
  5. "NAME"="CD-R/CD-RW/DVD-R/DVD-RW Burning"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Allow built-in burning support"
  8. "DESCRIPTION 1"="This option determines whether or not Windows allows built-in CD/DVD-burning or not."
  9. "COMMENT 1"="See: http://www.winguides.com/registry/display.php/979/ "
  10. "VERSION"="1.00"
  11. "AUTHOR"="Xteq Systems (CptSiskoX)"
  12. "COPYRIGHT"="Copyright 2002 ⌐ Xteq Systems - All Rights Reserved"
  13. "CONTACTURL"="http://www.xteq.com/"
  14. "OSVERSION"="0000011"
  15.  
  16. sP="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoCDBurning"
  17.  
  18. SUB Plugin_Initialize
  19.  s=RegValueExists(sP)
  20.  if s=true then
  21.   f=RegReadValue(sP)
  22.   if f=0 then
  23.    Call SetUIElement(1,true)
  24.   else
  25.    Call SetUIElement(1,false)
  26.   end if
  27.  else
  28.   Call SetUIElement(1,true)
  29.  end if
  30. END SUB
  31.  
  32. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  h=GetUIElement(1)
  34.  if h=true then
  35.   g=RegValueExists(sP)
  36.   if g=true then
  37.    Call RegWriteValue(sP,0,2)
  38.   end if
  39.  else
  40.   Call RegWriteValue(sP,1,2)
  41.  end if
  42.  
  43.  Call Restart()
  44. END SUB
  45.  
  46. SUB Plugin_Terminate
  47. END SUB
  48.